﻿using EntityFrameworkSample.Adapters;
using EntityFrameworkSample.Adapters.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EntityFrameworkSample.Controllers
{
    public class StudentController : Controller
    {
        // GET: Student
        public ActionResult Index()
        {
            HomeController mockHome = new HomeController();
            ViewResult result = mockHome.Index() as ViewResult;

            IHomeAdapter adapter = new HomeDataAdapter();
            HomeController dataHome = new HomeController(adapter);
            ViewResult result2 = dataHome.Index() as ViewResult;



            return View();
        }
    }
}